package com.openroom.ui.action;

import org.apache.pivot.wtk.Action;
import org.apache.pivot.wtk.Component;

import com.openroom.event.ApplicationEvent;
import com.openroom.event.EventManager;
import com.openroom.event.EventType;

public class RotateAction extends Action {

    private EventType eventType;

    public RotateAction(EventType eventType) {
        super();
        this.eventType = eventType;
    }

    @Override
    public void perform(Component source) {
        EventManager.getInstance().publishEvent(new ApplicationEvent(eventType));
    }

}
